Skip to content

fix(web): stop repeating email on destination calendar select - #3091

Merged
tyler-dane merged 1 commit into
mainfrom
cursor/booking-destination-calendar-label-7a70
Sep 2, 2026
Merged

fix(web): stop repeating email on destination calendar select#3091
tyler-dane merged 1 commit into
mainfrom
cursor/booking-destination-calendar-label-7a70

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Google primary calendars report their display name as the account email. Booking settings then appended (accountEmail) to every destination option, so primaries rendered as me@gmail.com (me@gmail.com).

The destination select now groups writable calendars by account the same way Settings' Default Calendar picker does: optgroup labeled with the account email, option text is the calendar name only.

Fixes #3082

Simplicity

Reuses groupCalendarsByAccount, already used for blocking calendars in this section. No new label helper and no third inline format. Simplify pass: no extra commit.

Automated validation

bun run verify PASS.

Selected packages: web
Checks run: test:web, type-check, lint, knip, test:a11y, test:e2e
Checks skipped: (none)

Focused: bun test:web packages/web/src/booking/BookingSettingsSection.test.tsx (28 pass), including a whole-string assertion that a Google primary option is host@example.com.

Independent review

VERDICT: no confirmed findings

Native select, option values, and the empty-writable placeholder are unchanged. Account grouping matches the Default Calendar picker, including empty-group filtering. Keyboard and screen-reader names stay on the existing Destination calendar combobox.

Test plan

  • bun test:web packages/web/src/booking/BookingSettingsSection.test.tsx
  • bun run verify
Open in Web Open in Cursor 

Group destination options by account like the Settings default-calendar
picker so Google primaries no longer render as email (email).

Fixes #3082

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane marked this pull request as ready for review September 2, 2026 15:56
@tyler-dane
tyler-dane merged commit 5099031 into main Sep 2, 2026
30 checks passed
@tyler-dane
tyler-dane deleted the cursor/booking-destination-calendar-label-7a70 branch September 2, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Destination calendar select repeats the email twice

2 participants